package com.jk.bgmainprovider.service;

import com.jk.bgmainprovider.entity.IndentEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.data.mongodb.core.query.Criteria;
import org.springframework.data.mongodb.core.query.Query;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class echartsService {

    @Autowired
    private  MongoTemplate MongoTemplate;

    public List<IndentEntity> findEcharts() {
        Query query = new Query();
        List<IndentEntity> indentEntities = MongoTemplate.find(query, IndentEntity.class);
        return indentEntities;
    }
}
